package com.ntl.webcore.system.business.exception;

import com.ntl.webcore.common.exception.CommonExceptionConstant;

public enum SystemExceptionConstant implements CommonExceptionConstant {
    ERROR_SYSTEM_USER_LIST("SYSTEM-USER-01","SysUserController 用户列表查询异常","用户列表查询异常"),
    ERROR_SYSTEM_USER_INSERT("SYSTEM-USER-02","SysUserController 添加用户信息异常","用户信息新增保存异常"),

    ;
    private String errorCode;
    private String errorMessage;
    private String clientMessage;


    SystemExceptionConstant(String errorCode, String errorMessage){
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
    SystemExceptionConstant(String errorCode, String errorMessage,String clientMessage){
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
        this.clientMessage = clientMessage;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }
    @Override
    public String getErrorMessage() {
        return errorMessage;
    }
    @Override
    public String getClientMessage() {
        return clientMessage;
    }

}
